import request from "@/api/request";
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired, type Project } from "../../interface";

/**
 * /project/match
 */
export function postProjectMatch(params: PostProjectMatchParams, config?: AxiosRequestConfig) {
    const paramsInput = {
        ...params.entity,
    };
    return request.post<DeepRequired<any>>(`/project/match`, null, {
        params: paramsInput,
        ...config,
    });
}

export interface PostProjectMatchParams {
    entity: Project;
}
